package gbench.sandbox.plot;

import gbench.common.fs.FileSystem;
import gbench.sandbox.plot.data.DataReader;

import static gbench.common.tree.LittleTree.IRecord.*;

import java.io.*;

public class JunitCherry {
    
    public static void main(String[] args) {
        final var dataTables = DataReader.load(new File(FileSystem.path("data/data.txt", JunitCherry.class)));
        final var data = dataTables.rec("表6-5");
        System.out.println(data.toString2());
        new JunitPlotLines().point_lines(REC(
            "x",data.lla("Volume",(String e) -> Double.valueOf(e)),
            "y",data.lla("Girth",(String e) -> Double.valueOf(e))));
    }

}
